/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.guobo.dao;

import java.util.List;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.guobo.entity.WarnroleRfid;

/**
 * 预警规则rfid中间表DAO接口
 * @author wudavid
 * @version 2017-03-09
 */
@MyBatisDao
public interface WarnroleRfidDao extends CrudDao<WarnroleRfid> {
	
	/**
	 * 根据预警规则id查询中间表数据
	 * @return
	 */
	public List<WarnroleRfid> findListByWarnroleId(WarnroleRfid warnroleRfid);

	/**
	 * 根据预警规则id查询中间表中的资产信息
	 * @param warnroleRfid
	 * @return
	 */
	public List<WarnroleRfid> findDistinctAssetInfoByWarnroleId(WarnroleRfid warnroleRfid);
	
	/**
	 * 根据rfid与规则id删除中间表记录
	 * @param warnroleRfid
	 */
	public void deleteInfoByRfidRole(WarnroleRfid warnroleRfid);
	
}